package com.opencloud.iot.client.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * 基础记录
 * @author yeyong
 */
@TableName("iot_recorders")
public class IotRecorders implements Serializable {

    private static final long serialVersionUID= 2893760282451565873L;

    /**
     * mac
     */
    @TableId(value = "macaddress", type = IdType.ID_WORKER)
    private String macaddress;

    private Long timestamp;

    private Integer status;

    @TableField(fill = FieldFill.INSERT)
    private Date createtime;

    private String watchmac;


    public String getMacaddress() {
        return macaddress;
    }

    public void setMacaddress(String macaddress) {
        this.macaddress = macaddress;
    }

    public Long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Long timestamp) {
        this.timestamp = timestamp;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getWatchmac() {
        return watchmac;
    }

    public void setWatchmac(String watchmac) {
        this.watchmac = watchmac;
    }

    @Override
    public String toString() {
        return "IotRecorders{" +
                "macaddress=" + macaddress +
                ", timestamp=" + timestamp +
                ", status=" + status +
                ", createtime=" + createtime +
                ", watchmac=" + watchmac +
                "}";
    }
}
